using Universal.Application.Contracts.Dto.User;
using Universal.Domain.Entities.App;

namespace Universal.Application.Repositories;

/// <summary>
/// 文件服务接口
/// </summary>
public interface IFileService
{
    // 上传文件
    Task<AppFile> UploadAsync(Stream fileStream, string originalName, string mimeType, long size, Guid userId);

    // 下载文件
    Task<(Stream fileStream, string mimeType, string originalName)> DownloadAsync(Guid fileId);

    // 上传头像
    Task<dynamic> UploadAvatarAsync(UploadAvatarDto dto);


}